<?php
/**
 * Created by PhpStorm.
 * User: iceberg
 * Date: 2018-10-09
 * Time: 16:21
 */

namespace app\service;


use app\model\Product;

class ProductService
{
    //分页
    public function page()
    {
        $where = [];
        return Product::where($where)->order('id desc')->paginate(2);
    }
}